/*
 *d6_7.cpp
 *Create by Administrator
 * 2017年1月22日
 * 下午2:59:57
 */
#include <iostream>
#include <vector>
using std::string;
using std::cin;
using std::cout;
using std::endl;
using std::vector;

bool (*pf)(const string &, const string &);
bool lengthCompare(const string &, const string &);

string::size_type sumLength(const string&,const string&);
bool cstringCompare(const char*,const char*);
int main() {
	pf = lengthCompare;
	pf = &lengthCompare;


	bool b1 = pf("hello","goodbye");  //调用lengthCompare函数
    bool b2 = (*pf)("hello","goodbye"); // 一个等价的调用
    bool b3 = lengthCompare("hello","goodbye"); //另一个等价的调用

	cout << " " << endl;
	return 0;
}
